<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<style>
		.div1{
			border: 1px solid red;
			background-color: lightgreen;
			width: 300px;
			height: 250px;
			margin: 100px;
			
		}
		.s1{
			border: 1px solid red;
			background-color: deepskyblue;
			
			/*转换为块元素才能设置宽、高、边距,（block)转换为行内元素(inline)*/
			display: block;
			width: 100px;
			height:40px;
			margin: 40px;
			
		}
	</style>
	<body>
		<div class="div1">
			<span class="s1">
				当前时间：7月14日
			</span>
		</div>
	</body>
</html>
